package Jakup;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class Admin_Dial extends JDialog {

	private final JPanel dailMain = new JPanel();


	public Admin_Dial( int val ) {
		
		
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		getContentPane().add(dailMain, BorderLayout.CENTER);
		
		dailMain.setLayout( new GridLayout(0, 1, 0, 0) );
		
		JPanel check[] = new JPanel[6];
		JLabel admin[] =  new JLabel[6];
		
		
		for ( int i = 0; i <= 5; i++){
			check[i] = new JPanel();
			admin[i] = new JLabel( i+"라벨");
			
			check[i].add( admin[i]);
			
			dailMain.add( check[i]);	
			
			
		}
		
		
		
		
		{
			JPanel btnPanel = new JPanel();
			btnPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(btnPanel, BorderLayout.SOUTH);
			
			
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				btnPanel.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.setActionCommand("Cancel");
				btnPanel.add(cancelButton);
			}
		}
	}

}
